package com.example.demo.Grade;

import com.example.demo.DAO.GradesDao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GradesServiceImpl implements GradesService {

    @Autowired
    private GradesDao gradesDao;


    public Grades getgrades(String cname) {
        return gradesDao.getgrades(cname);
    }


    public List<Grades> getAllgrades() {
        return gradesDao.getAllgrades();
    }
}
